﻿using Queer.AutoJob.Core.Entity;
using Queer.AutoJob.Core.Model;
using Queer.Util.Model;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Queer.AutoJob.Core.Business
{
    public interface IAutoJobLogBLL
    {
        #region 获取数据

        Task<TData<List<AutoJobLogEntity>>> GetList(AutoJobLogListParam param);

        Task<TData<List<AutoJobLogEntity>>> GetPageList(AutoJobLogListParam param, Pagination pagination);

        Task<TData<AutoJobLogEntity>> GetEntity(long id);

        #endregion

        #region 提交数据

        Task<TData<string>> SaveForm(AutoJobLogEntity entity);

        Task<TData> DeleteForm(string ids);
        Task<TData> DeleteFormByJobName(string jobName);

        #endregion
    }
}